﻿/*
=======================================================
    CheckWireropeDetailData【在用绳检测数据】
=======================================================
*/

namespace Services
{
    public interface ICheckWireropeDetailDataRepository : IRepository<CheckWireropeDetailData>
    {
        List<CheckWireropeDetailData> GetListByCheckWireropeDetailIDs(params int[] checkWireropeDetailIDs);
    }


    public class CheckWireropeDetailDataRepository : BaseRepository<CheckWireropeDetailData>, ICheckWireropeDetailDataRepository
    {
        public CheckWireropeDetailDataRepository(ISqlSugarClient dB, ICurrentUser currentUser, IQuery<CheckWireropeDetailData> query)
            : base(dB, currentUser, query)
        {
        }

        #region 获取一根绳子录入的检测数据
        public List<CheckWireropeDetailData> GetListByCheckWireropeDetailIDs(params int[] checkWireropeDetailIDs)
        {
            return _query.GetQueryable().Where(x => checkWireropeDetailIDs.Contains(x.CheckWireropeDetailID)).ToList();
        }
        #endregion
    }
}
